#include <cstdio>

bool f[ 1001 ][ 1001 ][ 2 ];

void init( )
{
    int i, j, k;
    for ( i = 1; i <= 1000; i++ )
    {
        f[ 1 ][ i ][ 0 ] = 0;
        f[ i ][ 1 ][ 1 ] = 0;
        if ( i - 1 )
            f[ 1 ][ i ][ 1 ] = f[ i ][ 1 ][ 0 ] = 1;
    }
    for ( i = 2; i <= 1000; i++ )
    {
        for ( j = 2; j <= 1000; j++ )
        {
            for ( k = 2; k * k <= i; k++ )
                if ( i % k == 0 )
                    break;
            if ( i % k != 0 )
                k = i;
            f[ i ][ j ][ 0 ] = f[ i / k ][ j ][ 1 ] ^ 1;
            for ( k = 2; k * k <= j; k++ )
                if ( j % k == 0 )
                    break;
            if ( j % k != 0 )
                k = j;
            f[ i ][ j ][ 1 ] = f[ i ][ j / k ][ 0 ] ^ 1;
        }
    }
}

int main( )
{
    int n, m;
    init( );
    while ( scanf("%d%d", &n, &m) != EOF )
        if ( f[ n ][ m ][ 0 ] )
            puts("Win");
        else
            puts("Lose");
    return 0;
}
